package Test;

public class Test {

	public Student screen()
	    {
	        if(this.id>10L&&this.name.equals("zhang")&&this.age>20&&this.gender==Gender.Ů&&this.joinsACM)
	        {
	            Student stu=new Student(this.id,this.name,this.age,this.gender,this.joinsACM);
	            return stu;
	        }
	        
	        else
	            return null; 
	    }

}public  ArrayList<Student> choose(ArrayList<Student> arrayList){for (Student student :list) {
    if (student.getId() > 10L && student.getName().equals("zhang")
            && student.getAge() > 20 && student.getGender().equals(Gender.Ů)&& student.isJoinsACM()) {
                        System.out.println(student);
        }}
